package com.nacos.client.business.impl;

import com.nacos.client.business.TestBusiness;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@Service
public class TestBusinessImpl implements TestBusiness {

    @Resource
    private RestTemplate restTemplate;

    @Override
    public String getName(String name) {
        return restTemplate.getForObject("http://nacos-core/test/hello?name=" + name, String.class);
    }
}
